package vip.mall.modular.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import vip.mall.common.entity.CommonEntity;

/**
 * @author ASUS
 * @Date 2025/2/10 9:58
 * @Descripition
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user")
@Builder
@Schema(description = "用户实体类")
public class User extends CommonEntity {
    @Schema(description = "用户名")
    private String username;
    @Schema(description = "密码")
    @JsonIgnore
    private String password;
    @Schema(description = "真实姓名")
    private String realName;
    @Schema(description = "性别")
    private Integer sex;
    @Schema(description = "手机号")
    private String phone;
    @Schema(description = "邮箱")
    private String email;
    @Schema(description = "角色标识")
    private Integer roleFlag;
}
